<?php

if(!defined('IN_NETGORESP')){ exit; }

 /*
   ----------------------------------------------------------------------------------------------------
   INITIATION
   ----------------------------------------------------------------------------------------------------
  */
 $config = Array();
 
 /*
   ----------------------------------------------------------------------------------------------------
   LANGUAGE?
   ----------------------------------------------------------------------------------------------------
	+ What language file are you going to use
		- By default only english exists.
		- So to use another you may have to make your own.
   ----------------------------------------------------------------------------------------------------
  */
 $config['language'] = "english";

 /*
   ----------------------------------------------------------------------------------------------------
   LOCALNPUBLIC SETTINGS
   ----------------------------------------------------------------------------------------------------
	+ Local and public is only used when you are hosting locally.
	+ IE: You are hosting the site on your computer.
		+ If you are:
			- Leave "$config['localnpublic']" as 1
		+ Otherwise:
			- Change "$config['localnpublic']" to 0
   ----------------------------------------------------------------------------------------------------
  */
 $config['localnpublic'] = 0;
 if($config['localnpublic'] == 1 && (GetHostByName($REMOTE_ADDR) == "127.0.0.1")){
 	// Change this to your local ip or keep it as localhost. They both work.
 	$config['link'] = "localhost/NetgoreSP"; // No ending slash or opening http://
 } else {
 	// If you have LocalnPublic off you should change this url. This is the one that public users will see.
 	$config['link'] = "skyon.be/netgoresp"; // No ending slash or opening http://
 }
 
 /*
   ----------------------------------------------------------------------------------------------------
   HTACCESS SETTINGS
   ----------------------------------------------------------------------------------------------------
	+ Htaccess On:
		@ Config Variable: Turns htaccess on or off
		+ If local host works on your computer / server:
			- Set as 1
			- Rename ".htaccess.bak" to ".htaccess"
		+ Otherwise:
			- Leave it as 0
   ----------------------------------------------------------------------------------------------------
  */
 $config['htaccess'] = 0;
 
 /*
   ----------------------------------------------------------------------------------------------------
   TEMPLATE NAME
   ----------------------------------------------------------------------------------------------------
	+ Template Names:
		@ Config Variable: Folder that contains template files
		- If you don't know how to make templates then leave this alone.
   ----------------------------------------------------------------------------------------------------
  */
 $config['template_name'] = "vbgoresp"; // Name of folder that contains template files

 /*
   ----------------------------------------------------------------------------------------------------
   FILTERED ITEMS
   ----------------------------------------------------------------------------------------------------
	+ Words that are to be filtered
		- Spaced with a bar "|"
   ----------------------------------------------------------------------------------------------------
  */
 $config['badwords'] = "fuck|pussy|penis|rape|slut|whore|bitch|vagina|legendary|greatest|pwnt|n00b|queer|anal|dick|suck|shit|faggot|prick|Admin";

 /*
   ----------------------------------------------------------------------------------------------------
   LINK SEO AND NON SEO URLS
   ----------------------------------------------------------------------------------------------------
	+ Switches SEO Url Contents
		- If htaccess is on, Displays SEO urls
		- If htaccess is off, Displays normal urls
   ----------------------------------------------------------------------------------------------------
   */ 
	if($config['htaccess'] == 1)
  {
		$link=Array();
			$link['login'] = 	"http://".$config['link']."/Login";
			$link['logout'] =	"http://".$config['link']."/Logout";
			$link['main'] = 	"http://".$config['link']."/Main";
			$link['register'] = "http://".$config['link']."/Register";
			$link['users'] =	"http://".$config['link']."/Users";
			$link['vusers'] = 	"http://".$config['link']."/View/";
			$link['online'] =	"http://".$config['link']."/ViewOnline";
	} 
  else  
  {
		$link=Array();
			$link['login'] = 	"http://".$config['link']."/login.php";
			$link['logout'] =	"http://".$config['link']."/login.php?logout";
			$link['main'] = 	"http://".$config['link']."/index.php";
			$link['register'] = "http://".$config['link']."/register.php?do=register";
			$link['users'] =	"http://".$config['link']."/users.php";
			$link['vusers'] = 	"http://".$config['link']."/users.profile.php?user=";
			$link['online'] =	"http://".$config['link']."/users.php?list=online";
	}
	
 /*
   ----------------------------------------------------------------------------------------------------
   TEMPLATE FUNCTIONS
   ----------------------------------------------------------------------------------------------------
	+ Was getting tired of having to re "announce" this over and over and over
		+ Reason for functions: 
			- Allows use of insertion of data instead of getting it when
			    it is not possible to do so.
			- Easier to access.
	+ Functions
		+ echoHeader
			- $flink is the links at the top of the page or wherever.
			- $config is.. well the configuration so that you can show the link
			   instead of making it global.
		+ echoFooter
			- $online -> Displays users online.
   ----------------------------------------------------------------------------------------------------
   */ 
	function echoHeader($flink, $config){
	global $slink, $lang;
		return '<html>
					<head>
						<title>NetgoreSP - Netgore Server Panel</title>
						<link rel="stylesheet" type="text/css" href="http://'.$config['link'].'/style.css" media="screen" />
					</head>
				<body>
					<div align="right">
						<h5><form action="index.php?do=qsearch" method="GET">'.$lang['qSearch'].': <input name="q" type="text" size="20" alt="Enter Term and press Enter" title="Enter Term and press Enter"> <input type="submit" name="submit" value="" style="visibility:hidden;"></form>
							<br />
							'.$flink.'
						</h5>
				</div>';
	}
	
	function echoFooter()
  {
		return '<div class="Foot Apply">
					<p>
						<br /><br />
						NetgoreSP is based on vbGORE &copy;DarkGrave
					</p>
				</div>
				</body>
				</html>';
	}
	
//  Making sure you read the whole thing. Change this to 1
	$config['edited'] = 1;
 
?>